from django.conf.urls.defaults import patterns, url


urlpatterns = patterns('myproject.messaging.views',
    url(r'^(?P<thread_id>\d+)/$', 'checkThreads'),
    url(r'^(?P<thread_id>\d+)/(respond/)+$', 'respondToThread'),
    url(r'^startThread/$', 'startThread'),
    url(r'^$', 'sendNewMessage'),
    url(r'^delete/(?P<thread_id>\d+)/$', 'removeReceiver'),
    url(r'^viewMoreThreads/(?P<threads_len>\d+)/(?P<thread_id>\d+)$', 'viewMoreThreads'),
)
